#!/usr/bin/awk -f
BEGIN {
	print "#include <stddef.h>";
	print "#include <stdint.h>";
	print "#include \"memonic.h\"";
	print "const struct memonic\nmtable[] = {";
}
NF < 4 { next }
n > 0 { print "," }
{ n++; printf "\t{\t\"%s\",\t%s,\t%s,\t%s\t}", $1, $2, $3, $4 }
END { print "\n};\nconst size_t mtable_size = " n ";" }

